package com.example.back.mapper;

import com.example.back.entity.HotSearch;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.ArrayList;

@Mapper
public interface HotSearchMapper {

    HotSearch selectByPrimaryKey(Integer id);

    @Select("select id, title,heat,subTitle,time,tag,createTime,updateTime  from hot_search where 1=1")
    ArrayList<HotSearch> selectUsers(HotSearch hotSearch);


}
